import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import v3scroll from 'vue3-scrollbar'
import { setupRouter } from '/@/router'
import { setupStore } from '@iframe/tools/store/modules'
import { setupDirective } from '@iframe/tools/directive'
import { createPlugin } from '@iframe/tools/plugins'
import VueDOMPurifyHTML from 'vue-dompurify-html'
import App from './App.vue'

import 'ant-design-vue/dist/reset.css'
import '/@/assets/less/global.less'
import '/@/assets/less/home.css'

const app = createApp(App)
app.use(Antd)
app.use(VueDOMPurifyHTML)
app.use(v3scroll)

setupDirective(app)
setupRouter(app)
setupStore(app)
createPlugin(app)

app.mount('#root')
